//////////////////////////////////////////////////////////////////////////
// PeekPocket - the hassle-free WiFi scanner for Windows Mobile
// coded by dzolee
// http://dzolee.blogspot.com
//
// This is a custom-drawn list control
//////////////////////////////////////////////////////////////////////////

#pragma once
#include "BitmapEx.h"

//////////////////////////////////////////////////////////////////////////
class CListCtrlEx : public CListCtrl
{
	DECLARE_DYNAMIC(CListCtrlEx)

public:
	CListCtrlEx();
	virtual ~CListCtrlEx();

protected:
	DECLARE_MESSAGE_MAP()

	//this structure holds the currently drawn item, between callbacks.
	//it's filled upon first custom draw callback, then
	//subsequent item drawing calls use it.
	DisplayInfo m_diTmp;

	//fxn to draw signal strength bars
	void DrawMiniBars(HDC hDC, CRect rc, DWORD dwSize, int iSig);

	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRecognizeGesture(NMHDR* pNMHDR, LRESULT* pResult); 
	afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);

	CBitmapEx m_bmp10, m_bmp14, m_bmp18;
};


